<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>Insert title here</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" />
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-3 column">
            <form role="form" method="POST" th:action="@{/userLogin}" th:object="${user}">

                <label for="username">Name</label><input type="text" class="form-control" id="username"  th:field="*{name}"/>

                <label for="password">Password</label><input type="password" class="form-control" id="password"  th:field="*{password}"/>


                <button type="submit" class="btn btn-default">登陆</button>
            </form>

            <ul class="nav nav-pills">
                <li role="presentation"><a href="login1" class="href" target="_blank">注册</a></li>
            </ul>

        </div>
    </div>
</div>
</body>
</html>